.markdown-body {
  // 基础排版优化
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #24292f;
  word-wrap: break-word;

  // 容器样式
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

  // 标题样式 - 层次分明的设计
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
  }

  h1 {
    font-size: 2em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid #eaecef;
    color: #0f172a;
    margin-top: 32px;
  }

  h2 {
    font-size: 1.7em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #eaecef;
    color: #1e293b;
    margin-top: 30px;
  }

  h3 {
    font-size: 1.4em;
    color: #334155;
    margin-top: 28px;
  }

  h4 {
    font-size: 1.2em;
    color: #475569;
    margin-top: 26px;
  }

  h5 {
    font-size: 1.1em;
    color: #64748b;
    margin-top: 24px;
  }

  h6 {
    font-size: 1em;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 22px;
  }

  // 段落样式
  p {
    margin-top: 0;
    margin-bottom: 16px;
  }

  // 列表样式
  ul,
  ol {
    padding-left: 2em;
    margin-top: 0;
    margin-bottom: 16px;
  }

  li {
    margin-bottom: 8px;
  }

  // 代码块样式优化
  pre {
    margin: 0 0 20px !important;
    min-height: 0;
    padding: 16px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: #f6f8fa;
    border-radius: 6px;
    border: 1px solid #d0d7de;
  }

  // 行内代码样式
  code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(175, 184, 193, 0.2);
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono',
      monospace;
  }

  pre > code {
    padding: 0;
    margin: 0;
    font-size: 100%;
    word-break: normal;
    white-space: pre;
    background: transparent;
    border: 0;
  }

  // 链接样式
  a {
    color: #0969da;
    text-decoration: none;
    &:hover {
      text-decoration: underline;
    }
  }

  // 引用样式优化
  blockquote {
    margin: 0;
    padding: 0 1em;
    color: #57606a;
    border-left: 0.25em solid #d0d7de;
    background-color: #f6f8fa;
    padding: 16px;
    border-radius: 0 6px 6px 0;
  }

  // 分割线样式
  hr {
    border: none;
    height: 1px;
    background-color: #eaecef;
    margin: 24px 0;
  }

  // 图片样式
  img {
    max-width: 100%;
    box-sizing: content-box;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  // 表格样式优化
  table {
    display: block;
    overflow: auto;
    margin-bottom: 16px;
    width: 100%;
    border-collapse: collapse;
    empty-cells: show;
    border-spacing: 0;
    word-break: keep-all;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  th {
    border: 1px solid #dfe2e5;
    padding: 12px 13px;
    white-space: nowrap;
    word-break: normal;
    background-color: #f6f8fa;
    font-weight: 600;
  }

  td {
    border: 1px solid #dfe2e5;
    padding: 10px 13px;
    white-space: nowrap;
    word-break: normal;
  }

  thead {
    tr {
      background: #f6f8fa;
    }
  }

  tbody {
    tr:nth-child(even) {
      background: #f6f8fa;
    }

    tr:hover {
      background: #eaeff5;
    }
  }

  // 代码块头部样式
  .code-header {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 38px;
    font-size: 14px;
    font-weight: 600;
    color: #57606a;
    background: #f6f8fa;
    line-height: 38px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border: 1px solid #d0d7de;
    border-bottom: none;

    .preview-code-copy {
      margin-left: auto;
      cursor: pointer;
      transition: all 0.3s;
      color: #57606a;

      .copy-success {
        margin-right: 10px;
        font-size: 14px;
        color: #1a7f37;
        line-height: 1rem;
      }

      &:hover {
        color: #0969da;
      }
    }
  }

  // 动画效果
  .code-rotate-right {
    animation: rotate-right 0.2s linear forwards;
  }

  .code-rotate-down {
    animation: rotate-down 0.2s linear forwards;
  }

  @keyframes rotate-right {
    from {
      transform: rotate(0);
    }

    to {
      transform: rotate(-90deg);
    }
  }

  @keyframes rotate-down {
    from {
      transform: rotate(-90deg);
    }

    to {
      transform: rotate(0);
    }
  }
}

 .markdown-toc {
    
    h3 {
      margin-top: 0;
      color: #2c3e50;
      border-bottom: 1px solid #eaecef;
      padding-bottom: 8px;
    }
    
    ul {
      padding-left: 20px;
      list-style: none;
      
      li {
        margin-bottom: 8px;
        
        a {
          text-decoration: none;
          color: #495057;
          font-size: 14px;
          transition: color 0.2s;
          
          &:hover {
            color: #0969da;
          }
        }
      }
    }
  }


